import http from "@/utils/request"
import { BuildingResponse, HouseParams, HouseResponse } from "./type";

/**
 * 获取楼栋
 * @returns 
 */
export const getBuildingList=()=>{
    return http.get<BuildingResponse>("building/list");
}

/**
 * 获取房间
 * @returns 
 */
export const getHouseList=(params:HouseParams)=>{
    return http.get<HouseResponse>("houses/list",params);
}